/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package models.beans;

import java.text.SimpleDateFormat;
import java.util.Date;

import java.util.List;
import org.apache.struts.upload.FormFile;

/**
 *
 * @author Group 3 Aprotrain Aptech  Group3 Aprotrain Aptech
 */
public class MessageBroads extends org.apache.struts.action.ActionForm {
    
    private int messageId;
    private String title;
    private String  content;
    private String date;
    private String author;
    private String attachment;
    private String deadline;
    private FormFile theFile;
    private List<MessageBroadsBean> messageBroads;
    private MessageBroadsBean messBean;

    public FormFile getTheFile() {
        return theFile;
    }

    public void setTheFile(FormFile theFile) {
        this.theFile = theFile;
    }

    public MessageBroadsBean getMessBean() {
        return messBean;
    }

    public void setMessBean(MessageBroadsBean messBean) {
        this.messBean = messBean;
    }
    public List<MessageBroadsBean> getMessageBroads() {
        return messageBroads;
    }

    public void setMessageBroads(List<MessageBroadsBean> messageBroads) {
        this.messageBroads = messageBroads;
    }
    
    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public MessageBroads() {
        super();
        SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
        Date date = new Date();
        this.messageId = 0;
        this.title = "";
        this.content = "";
        this.date = df.format(date);
        this.author = "";
        this.attachment = "";
        this.deadline = df.format(date);
    }

}
